﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/BMP_List.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="Pages_ProductTotal_Default" %>
<asp:Content ID="contentHeader" ContentPlaceHolderID="head" runat="Server">

    <link rel="stylesheet" href="<%= ZPath.ResourcesURI %>HTMLControls/FusionChartsV3/Contents/Style.css"  type="text/css" />
    <script type="text/javascript" src="<%= ZPath.ResourcesURI %>HTMLControls/FusionChartsV3/JSClass/FusionCharts.js"></script>

</asp:Content>
<asp:Content ID="contentSearch" ContentPlaceHolderID="contentPlaceHolderToolBar" runat="Server">
   <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="false" UpdateMode="Conditional">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="ddlCity"></asp:AsyncPostBackTrigger>
        </Triggers>
        <ContentTemplate>
            <asp:DropDownList ID="ddlCity" runat="server" Width="135px" AutoPostBack="True" OnSelectedIndexChanged="ddlCity_SelectedIndexChanged">
            </asp:DropDownList>
            <asp:DropDownList ID="ddlDistrict" runat="server" Width="135px">
            </asp:DropDownList>
        </ContentTemplate>
    </asp:UpdatePanel>


   
    日期
    <asp:TextBox ID="fromData" runat="server" Field="CreateDate" Opt="&#62;=" onFocus="GetMaxDate('toData');"
        ClientIDMode="Static" Width="80">
    </asp:TextBox>
    至
    <asp:TextBox ID="toData" runat="server" Field="CreateDate" Opt="&#60;=" onFocus="GetMinDate('fromData');"
        ClientIDMode="Static" Width="80">
    </asp:TextBox>
     

          日均在线时长
  <asp:TextBox runat="server" ID="txtAvgBegin"  Opt="%" Width="50px" Text="0" >
    </asp:TextBox>~
    <asp:TextBox runat="server" ID="txtAvgEnd"  Opt="%" Width="50px" Text="24" >
    </asp:TextBox>

     模糊查询
    <asp:TextBox runat="server" ID="txtAll" Field="Equip_SimNo,Equip_No"
        Opt="%" ToolTip="设备内SIM卡号">
    </asp:TextBox>

</asp:Content>
<asp:Content ID="contentMain" ContentPlaceHolderID="contentPlaceHolder" runat="Server">
    <asp:GridView ClientIDMode="Static" ID="gvInfos" runat="server" >
        <Columns>
		<asp:TemplateField  ItemStyle-Width="50">
            <HeaderTemplate>
               排名

            </HeaderTemplate>
            <ItemTemplate>
                 <%# Container.DataItemIndex + 1%>
            </ItemTemplate>
        </asp:TemplateField>	
		<asp:BoundField DataField="Equip_City" SortExpression="Equip_City" HeaderText="市" />		
        <asp:BoundField DataField="Equip_County" SortExpression="Equip_County" HeaderText="县（区）" />
        <asp:BoundField DataField="Equip_SimNo" SortExpression="Equip_SimNo" HeaderText="SIM卡号" />
        
	     <asp:BoundField DataField="CurrentStatus" SortExpression="CurrentStatus" HeaderText="在线状态" />
         <asp:BoundField DataField="AvgTotal" SortExpression="AvgTotal" HeaderText="日均在线时长" />
         <asp:BoundField DataField="Online_Total" SortExpression="Online_Total" HeaderText="总在线时长" />

        </Columns>
    </asp:GridView>


</asp:Content>
